package com.xbts.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xbts.system.domain.PartyPointsDeclaration;
import com.xbts.system.domain.vo.PartyPointsDeclarationVo;

import java.util.List;

/**
 * 积分申报表Service接口
 *
 * @author xbts
 * @date 2023-06-12
 */
public interface IPartyPointsDeclarationService extends IService<PartyPointsDeclaration> {

    /**
     * 查询活动积分申报
     *
     * @param partyPointsDeclaration 积分申报
     * @return 积分申报集合
     */
    List<PartyPointsDeclaration> selectPartyPointsDeclarationList(PartyPointsDeclaration partyPointsDeclaration);

    /**
     * 查询积分申报
     *
     * @param id 积分申报主键
     * @return 积分申报
     */
    PartyPointsDeclaration selectPartyPointsDeclarationById(String id);


    /**
     * 新增积分申报
     *
     * @param partyPointsDeclaration 积分申报
     * @return 结果
     */
    boolean insertPartyPointsDeclaration(PartyPointsDeclaration partyPointsDeclaration);

    /**
     * 修改积分申报
     *
     * @param partyPointsDeclaration 积分申报
     * @return 结果
     */
    boolean updatePartyPointsDeclaration(PartyPointsDeclaration partyPointsDeclaration);

    /**
     * 批量删除积分申报
     *
     * @param ids 需要删除的积分申报主键集合
     * @return 结果
     */
    boolean deletePartyPointsDeclarationByIds(List<String> ids);

    /**
     * 删除积分申报信息
     *
     * @param id 积分申报主键
     * @return 结果
     */
    boolean deletePartyPointsDeclarationById(String id);

    /**
     * 积分排行
     * @param year 年份
     * @return 积分排行
     */
    List<PartyPointsDeclarationVo> pointsRanking(String year);
}
